﻿@{
    ViewBag.Title = "签收单列表";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.DWZGridFor<Resto.CostControl.Core.DishDelivery>()
        .Title("签收单列表")
    .Action(@Url.Action("Index"))
    .Columns(col =>
    {
        col.Bind(e => e.Id).IsKey();
        //col.Bind(e => e.Code).Width(80).AsQuery().Align(FlexiGridAlign.Left);
        col.Bind(e => e.Date).Width(70).DateFormat("yyyy-MM-dd");
        col.Bind(e => e.SiteID).Width(80).EnumKey("ProjectSite");
        col.Bind(e => e.Address).Width(140).Align(FlexiGridAlign.Left);
        col.Bind(e => e.State).Width(40).EnumKey("DishState");
        //col.Bind(e => e.ItemDesc).Width("auto").Align(FlexiGridAlign.Left);
        col.Bind(e => e.UpdateUser).Width(60);
        col.Bind(e => e.UpdateDate).Width(70).DateFormat("yyyy-MM-dd");
        col.Bind(e => e.Id, "操作", 60).Sortable(false)
            .Template(Url.GridLink("accept", "签收", "DishSign('${Id}')"));
    })
)
<script type="text/javascript">
    function DishSign(id) {
        OpenFormDialog('@Url.Action("Edit")/' + id, "签收原材料");
    }
</script>
